package net.wangds.config.module;

import lombok.*;
import lombok.experimental.SuperBuilder;
import org.springframework.beans.BeanUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * .
 * <p></p>
 *
 * @author 王东石 2020/12/7 18:03.
 */
@Getter
@Setter
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class ParentDict extends Dict {

    public static ParentDict of(Dict temp){
        ParentDict res = new ParentDict();
        BeanUtils.copyProperties(temp, res);
        return res;
    }

    @Builder.Default
    private List<Dict> children = new ArrayList<>();



}
